/*
 * @Author: zxh
 * @Email: 1271027008@qq.com
 * @Date: 2020-03-26 08:57:58
 * @Descripttion: 
 */
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class VersionService {

  constructor(
    private http:HttpClient
  ) { }

  private baseUrl = '/api/version'

  getList(data):Observable<any>{
    return this.http.get(this.baseUrl,{params:data}).pipe()
  }

  addVersion(data):Observable<any>{
    return this.http.post(this.baseUrl,data).pipe()
  }

}
